﻿<Window x:Class="ResPackClient.AddType"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:code="clr-namespace:ResPackClient"
        Title="{StaticResource STR_DLG_ADD_TYPE}" 
        Style="{StaticResource STYLE_TOOLBOX}"
        WindowStartupLocation="CenterOwner"       
        Height="460" Width="220">
    
    <!--Le datacontext est définie dans le constructeur de AddType-->
    
    <Grid>
        <StackPanel>
            
            <TextBlock Text="{StaticResource STR_DLG_FAMILY_TYPE}"></TextBlock>
            <ComboBox Name="_cbType"  ItemsSource="{Binding Path=tbResourceFamilies.Rows}" ItemTemplate="{StaticResource DATA_TEMPLATE_FAMILY}"></ComboBox>
            
            <TextBlock Text="{StaticResource STR_DLG_NAME_TYPE}"></TextBlock>
            <TextBox Name="_txtName"></TextBox>

            <TextBlock Text="{StaticResource STR_DLG_MAGIC_TYPE}"></TextBlock>
            <TextBox Name="_txtMagic"></TextBox>

            <TextBlock Text="{StaticResource STR_DLG_EXT_TYPE}"></TextBlock>
            <TextBox Name="_txtExt">
            </TextBox>
            
            <TextBlock Text="{StaticResource STR_DLG_DESC_TYPE}"></TextBlock>
            <TextBox Name="_txtDesc"></TextBox>
            
            <TextBlock Text="{StaticResource STR_DLG_HEADER_TYPE}"></TextBlock>
            <TextBox Name="_txtHeader">
            </TextBox>
            
            <StackPanel Style="{StaticResource STYLE_DLG_BT}">
                <Button Content="{StaticResource STR_BT_OK}" IsDefault="True" Click="OnOk">
                </Button>
                <Button Content="{StaticResource STR_BT_CANCEL}" IsCancel="True"></Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
